import React from "react";
import { BrowserRouter as Router, Switch, Route, Link, Redirect } from "react-router-dom";
import "./App.css";
import Home from "./view/Home";
import Login from "./view/Login";

function App() {
  return (
    <div className="App">
      <Router>
        <Switch>
          <Route path="/home" component={Home}></Route>
          <Route path="/login" component={Login}></Route>
          <Redirect from="/*" to="/login"></Redirect>
        </Switch>
      </Router>
    </div>
  );
}

export default App;
